home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2
- Path: uu4news.netcom.com!friend!news
- From: rich@kastle.com (Richard Krehbiel)
- Subject: Re: Hungarian notation - whoops!
- Message-ID: <1996Feb8.130010.27570@friend.kastle.com>
- Sender: news@friend.kastle.com (News)
- Reply-To: rich@kastle.com
- Organization: Kastle Development Associates
- X-Newsreader: Forte Free Agent 1.0.82
- References: <30C40F77.53B5@swsbbs.com> <Pine.HPP.3.91.960124153551.24374C-100000@zeezrom.cs.byu.edu> <4e7ifl$et3@goanna.cs.rmit.EDU.AU> <Pine.HPP.3.91.960129133429.8419C-100000@foggy.cs.byu.edu> <4em29qINN39r@keats.ugrad.cs.ubc.ca> <Pine.HPP.3.91.960201015336.17360C-100000@clear.cs.byu.edu> <4f41vf$g8j@goanna.cs.rmit.EDU.AU> <Pine.HPP.3.91.960205124102.18647E-100000@warm.cs.byu.edu> <4fc157$jsf@goanna.cs.rmit.EDU.AU>
- Date: Thu, 8 Feb 1996 12:59:39 GMT
-
- ok@goanna.cs.rmit.EDU.AU (Richard A. O'Keefe) wrote:
-
- >Douglas Evan Cook <cookd@cs.byu.edu> writes:
-
- >>Then, when porting to a different platform, you just do whatever it takes
- >>to define INT16 to match the spec.
-
- >How often do I have to say _this_?
-
- >- There are two (16Mb, recent) computers on my desk. (One will be going
- > away soon.)
- >- There are two other computers in this office. One needs repair, but
- > has the nicest keyboard I've ever used, and the other needs a 240 volt
- > to 110 volt transformer which I loaned to a friend.
- >- I have accounts on three (large, recent) multi-user machines in this
- > department, and am posting from one of them at the moment.
-
- >*NONE* of these machines can support a 16-bit little-endian integer type.
-
- >I _could_ get an account on a supercomputer if I wanted to. I have also
- >used a couple of mainframes. None of them can support a 16-bit little-
- >endian integer type either. One of the mainframes was not 2s complement
- >(it was sign-and-magnitude; I still think having a negative number whose
- >absolute value can't be represented is _silly_). That kind of mainframe
- >is still made and still used and still appropriate.,
-
- Seriously? I think you are giving up too early. He did say "whatever
- it takes".
-
- A 486SX can do IEEE floating point arithmetic, but it has no floating
- point unit. It does it with software emulation. C compilers for 8
- bit micros can somehow multiply and divide even though the CPU only
- has add, subtract, and shift instructions.
-
- I suspect that, with a bit of software, even your machines could
- implement 16 bit little endian integers.
-
- --
- Richard Krehbiel, Kastle Systems, Arlington VA USA
- rich@kastle.com (work) or richk@mnsinc.com (personal)
-
-